package com.farmer.service;

import com.farmer.pojo.Comment;
import com.farmer.pojo.Notice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.farmer.utils.Result;

import java.util.List;

/**
* @author 86183
* @description 针对表【notice(公告信息表)】的数据库操作Service
* @createDate 2024-05-12 11:43:00
*/
public interface NoticeService extends IService<Notice> {

    Result add(String token, Notice notice);

    Result delete(Integer id);

    Result getById(Integer id);

    Result getAll();

    Result update(Notice notice);

    Result getByTitleLike(String title);

    Result deleteBatch(List<Integer> ids);

    /*
     * 分页查询*/
    Result page(Integer pageNum, Integer pageSize);
}
